public class Check {
    public static boolean isInteger(String s)
	{
	    try {
		    int i = Integer.parseInt(s);
		} catch (NumberFormatException ex) {
		    return false;
		}
		return true;
	}
}